Skip to content

Instantly share code, notes, and snippets.

@AustinWinstanley
AustinWinstanley / ubuntu-screen-resolution-hyper-v.sh
Created January 4, 2018 01:49
Changing Ubuntu Screen Resolution in a Hyper-V VM
sudo nano /etc/default/grub
# GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"
sudo update-grub
@Klerith
Klerith / instalaciones-next.md
Last active May 21, 2024 19:19
Instalaciones recomendadas para el curso de Next.js 13 >
@ih2502mk
ih2502mk / list.md
Last active May 21, 2024 19:16
Quantopian Lectures Saved
@philcampbell-qhr
philcampbell-qhr / cities.txt
Created January 8, 2020 22:51
list of cities/towns in Canada
100 Mile House, British Columbia
108 Mile House, British Columbia
108 Mile Ranch, British Columbia
150 Mile House, British Columbia
Abbey, Saskatchewan
Abbotsford, British Columbia
Aberarder, Ontario
Abercorn, Quebec
Aberdeen, Saskatchewan
Abernethy, Saskatchewan
@nosmall
nosmall / Win_Server_2022_Evaluation_to_full_version.md
Created April 16, 2023 11:11
Upgrade Windows Server 2022 Evaluation (Eval) to Full Version Standard or Datacenter
@teja156
teja156 / gist:8c35a05f43635da4cbd06b47c0d91e93
Last active May 21, 2024 19:09
Commands for deploying wordpress website on AWS EC2 shown in my YouTube video
YouTube video link: https://youtu.be/8Uofkq718n8
All the commands that are executed in the above youtube video are mentioned in this gist.
1. Install Apache server on Ubuntu
sudo apt install apache2
2. Install php runtime and php mysql connector
sudo apt install php libapache2-mod-php php-mysql
3. Install MySQL server
@cmh114933
cmh114933 / _redirects
Last active May 21, 2024 19:07
Enable Angular Routing on Netlify
/* /index.html 200
@simonw
simonw / recover_source_code.md
Last active May 21, 2024 19:04
How to recover lost Python source code if it's still resident in-memory

How to recover lost Python source code if it's still resident in-memory

I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6

Attach a shell to the docker container

Install GDB (needed by pyrasite)

apt-get update && apt-get install gdb
@nirbhabbarat
nirbhabbarat / gitlab-on-minikube-helm3.md
Last active May 21, 2024 19:01
setup gitlab on minikube using helm3

Setup gitlab on minikube using helm3

Start minikube with virtualbox driver

minikube start \
  --driver=virtualbox \
  --cpus 4 \
  --memory 8192

Recomended: 8 CPU and 30 GB RAM (for demo we are going to use minimal setup)